<?php
# $Id:
require('header_admin.php');
$alert = $template['alert'];
$trigger = $template['trigger'];
?>
<script language="javascript" type="text/javascript">
<!--
function setfocus()
{
    document.loginForm.username.select();
    document.loginForm.username.focus();
}
function check_alert()
{
    var message = '<?=$alert?>';
    var trigger = '<?=$trigger?>';
    if(message && trigger == 1){
        alert(message);
	return false;
    }else{
        return true;
    }
}
//-->
</script>
<body onLoad="setfocus(); check_alert();" class="bodyimage">
</body>
<div id="wrapper">
   <div id="header">
        <div id="jollibee">
    <!--        <img src="<?=WEB_MODULE_DIR?>images/head6.png">-->
        </div>
       </div>
</div>
<div id="ctr" align="center">
    <div class="login">
        <div class="login-form">
		<img src="<?=WEB_MODULE_DIR?>images/login.gif" alt="Login" />
	    <form id="loginForm" name="loginForm" method="POST" action="?module=<?=DEFAULT_MODULE?>&action=Login">
	    <div class="form-block">
	        <div class="inputlabel">Username</div>
	        <div><input type="text" name="username" class="inputbox" size="15px"></div>
	        <div class="inputlabel">Password</div>
	        <div><input type="password" name="pass" class="inputbox" size="15px"></div>		
	        <div align="left"><input type="submit" name="flag" class="button" value="Login"></div>
	    </div>
	    </form>
        </div>
        <div class="login-text">
            <div class="ctr"><img src="<?=WEB_MODULE_DIR?>images/security_f3.png" width="64" height="64" alt="security" /></div>
	      <p>Welcome to <?php global $config; echo $config['title'];?>!</p>
	      <p>Use a valid username and password to gain access to the Enrollment Console.</p>
	   </div>
	   <div class="clr"></div>	
        </div>
</div>
<br>
<?php require('footer.php'); ?>
</body>
</html>
